diff options
| author | Dhravya <[email protected]> | 2025-09-01 07:12:37 +0000 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2025-09-01 07:12:37 +0000 |
| commit | 48e23c13edff6308e03ed430c53c5586cfb28f2a (patch) | |
| tree | 756ca8f6ea6945bbcc2a7090aafaa611c348ddb6 /apps/web/app/ref/[code] | |
| parent | fix: tour guide fix on overlap (#403) (diff) | |
| download | supermemory-48e23c13edff6308e03ed430c53c5586cfb28f2a.tar.xz supermemory-48e23c13edff6308e03ed430c53c5586cfb28f2a.zip | |
completely remove waitlist (#404)
Diffstat (limited to 'apps/web/app/ref/[code]')
| -rw-r--r-- | apps/web/app/ref/[code]/page.tsx | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/apps/web/app/ref/[code]/page.tsx b/apps/web/app/ref/[code]/page.tsx index 3acbe657..98afcfe5 100644 --- a/apps/web/app/ref/[code]/page.tsx +++ b/apps/web/app/ref/[code]/page.tsx @@ -20,7 +20,6 @@ export default function ReferralPage() { const params = useParams(); const referralCode = params.code as string; - const [isJoiningWaitlist, setIsJoiningWaitlist] = useState(false); const [isLoading, setIsLoading] = useState(true); const [referralData, setReferralData] = useState<{ referrerName?: string; @@ -56,18 +55,7 @@ export default function ReferralPage() { checkReferral(); }, [referralCode]); - const handleJoinWaitlist = async () => { - setIsJoiningWaitlist(true); - try { - // Redirect to waitlist signup with referral code - router.push(`/waitlist?ref=${referralCode}`); - } catch (error) { - console.error("Error joining waitlist:", error); - toast.error("Failed to join waitlist. Please try again."); - } finally { - setIsJoiningWaitlist(false); - } - }; + const handleCopyLink = async () => { try { @@ -158,17 +146,6 @@ export default function ReferralPage() { </p> </div> - <Button - onClick={handleJoinWaitlist} - disabled={isJoiningWaitlist} - className="w-full bg-orange-500 hover:bg-orange-600 text-white" - > - {isJoiningWaitlist ? ( - <LoaderIcon className="w-4 h-4 animate-spin" /> - ) : ( - "Join the Waitlist" - )} - </Button> <div className="text-center"> <Link |